package com.westos.userauth.dao;


import com.westos.userauth.domain.PartyGroup;
import com.westos.userauth.dto.PartySearchDto;

import java.util.List;

public interface PartyGroupDao {
    /*
     * 根据partyId删除PartyGroup表中的关联行
     * */
    int deletePartyGroupByPartyId(String partyId);

    int insertPartyGroup(PartyGroup partyGroup);

    int updatePartyGroup(PartyGroup partyGroup);

    int updatePartyGroupByName(PartyGroup partyGroup, String newName);

    List<PartyGroup> selectPartyGroup(PartySearchDto partySearchDto);

    PartyGroup selectPartyGroupById(String partyId);
}
